/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_billingpoint_service")
//@NamedQueries({@NamedQuery(name = "TBillingpointService.findAll", query = "SELECT t FROM TBillingpointService t"), @NamedQuery(name = "TBillingpointService.findById", query = "SELECT t FROM TBillingpointService t WHERE t.id = :id"), @NamedQuery(name = "TBillingpointService.findByContentid", query = "SELECT t FROM TBillingpointService t WHERE t.contentid = :contentid"), @NamedQuery(name = "TBillingpointService.findByBillingpoint", query = "SELECT t FROM TBillingpointService t WHERE t.billingpoint = :billingpoint"), @NamedQuery(name = "TBillingpointService.findByComment", query = "SELECT t FROM TBillingpointService t WHERE t.comment = :comment"), @NamedQuery(name = "TBillingpointService.findByServiceCode", query = "SELECT t FROM TBillingpointService t WHERE t.serviceCode = :serviceCode")})
public class TBillingpointService implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Long id;
    @Basic(optional = false)
    @Column(name = "contentid")
    private String contentid;
    @Basic(optional = false)
    @Column(name = "billingpoint")
    private String billingpoint;
    @Column(name = "comment")
    private String comment;
    @Column(name = "service_code")
    private String serviceCode;

    public TBillingpointService() {
    }

    public TBillingpointService(Long id) {
        this.id = id;
    }

    public TBillingpointService(Long id, String contentid, String billingpoint) {
        this.id = id;
        this.contentid = contentid;
        this.billingpoint = billingpoint;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContentid() {
        return contentid;
    }

    public void setContentid(String contentid) {
        this.contentid = contentid;
    }

    public String getBillingpoint() {
        return billingpoint;
    }

    public void setBillingpoint(String billingpoint) {
        this.billingpoint = billingpoint;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getServiceCode() {
        return serviceCode;
    }

    public void setServiceCode(String serviceCode) {
        this.serviceCode = serviceCode;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TBillingpointService)) {
            return false;
        }
        TBillingpointService other = (TBillingpointService) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TBillingpointService[id=" + id + "]";
    }

}
